home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / os2 / adaptor.zip / ADAPT.ZIP / adaptor / src / include / general.h < prev    next >
C/C++ Source or Header  |  1993-03-22  |  1KB  |  46 lines

  1. # ifndef yyGeneral
  2. # define yyGeneral
  3.  
  4. /* $Id: General.h,v 1.4 1991/11/21 14:28:16 grosch rel $ */
  5.  
  6. /* $Log: General.h,v $
  7.  * Revision 1.4  1991/11/21  14:28:16  grosch
  8.  * new version of RCS on SPARC
  9.  *
  10.  * Revision 1.3  91/07/17  17:23:06  grosch
  11.  * introduced ARGS trick for ANSI compatibility
  12.  * 
  13.  * Revision 1.2  90/09/04  17:32:09  grosch
  14.  * automatic determination of alignment
  15.  * 
  16.  * Revision 1.1  90/07/04  14:33:54  grosch
  17.  * introduced conditional include
  18.  * 
  19.  * Revision 1.0  88/10/04  11:44:37  grosch
  20.  * Initial revision
  21.  * 
  22.  */
  23.  
  24. /* Ich, Doktor Josef Grosch, Informatiker, Sept. 1987 */
  25.  
  26. # include "ratc.h"
  27.  
  28. # ifdef __STDC__
  29. # define ARGS(parameters)    parameters
  30. # else
  31. # define ARGS(parameters)    ()
  32. # endif
  33.  
  34. # define Min(a,b) ((a <= b) ? a : b)
  35. # define Max(a,b) ((a >= b) ? a : b)
  36.  
  37. extern cardinal        Log2 ARGS((register unsigned long x));
  38.    /* Returns the logarithm to the base 2 of 'x'.    */
  39. extern unsigned long    Exp2 ARGS((register cardinal x));
  40.    /* Returns 2 to the power of 'x'.            */
  41.  
  42. extern short    yyMaxAlign;
  43. extern long    yyAlignMasks [];
  44.  
  45. # endif
  46.